package com.ruicar.afs.cloud.bizcommon.business.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.bizcommon.business.entity.FinDiscountDetails;

import java.math.BigDecimal;
import java.util.List;

/**
 * @description: 贴息明细
 * @author: sijun.yu
 * @date: 2020/5/16 11:46
 */
public interface ApplyDiscountDetailsService extends IService<FinDiscountDetails> {

    /**
     * 保存贴息明细列表
     *
     * @param applyNo
     * @param discountList
     */
    public void saveApplyDiscountDetailsList(String applyNo, Long costId, String costType, String discountType, BigDecimal totalDiscountAmt, List<FinDiscountDetails> discountList);

    /**
     * 查询贴息列表
     *
     * @param applyNo
     * @param costType
     * @return
     */
    public List<FinDiscountDetails> getDiscountDetailsList(String applyNo, String costType);

    /**
     * 通过申请编号查询贴息列表
     * @param applyNo
     * @return
     */
    public List<FinDiscountDetails> getDiscountDetailsList(String applyNo);

    /**
     * 通过申请编号和费用ID查询贴息列表
     *
     * @param applyNo
     * @param costId
     * @return
     */
    public List<FinDiscountDetails> getDiscountDetailsList(String applyNo, Long costId);

    /**
     * @param applyNo
     * @param costId
     * @param costType
     * @return
     */
    public List<FinDiscountDetails> getDiscountDetailsList(String applyNo, Long costId, String costType);

}
